import request from '@/utils/request'

// 查询comboitem列表
export function listComboitem(query) {
  return request({
    url: '/comboitem/list',
    method: 'get',
    params: query
  })
}

// 分页查询comboitem列表
export function listComboitemByPage(query) {
  return request({
    url: '/comboitem/page',
    method: 'get',
    params: query
  })
}

// 查询comboitem
export function getComboitem(id) {
  return request({
    url: '/comboitem/' + id,
    method: 'get'
  })
}

// 新增comboitem
export function addComboitem(data) {
  return request({
    url: '/comboitem',
    method: 'post',
    data: data
  })
}

// 修改comboitem
export function updateComboitem(data) {
  return request({
    url: '/comboitem',
    method: 'put',
    data: data
  })
}

// 删除comboitem
export function deleteComboitem(id) {
  return request({
    url: '/comboitem/delete/' + id,
    method: 'delete'
  })
}
